package com.monkeyk.os.domain.rs;

import com.monkeyk.os.domain.oauth.ClientDetail;
import org.apache.oltu.oauth2.rsfilter.OAuthClient;

/**
 * 2015/10/7
 * <p/>
 * Wrapper ClientDetail
 * implement OAuthClient
 *
 * @author Shengzhao Li
 * @see ClientDetail
 */
public class RsOAuthClient implements OAuthClient {

    private ClientDetail clientDetail;

    public RsOAuthClient(ClientDetail clientDetail) {
        this.clientDetail = clientDetail;
    }

    @Override
    public String getClientId() {
        return clientDetail.getClientId();
    }

    public ClientDetail getClientDetail() {
        return clientDetail;
    }
}
